class OutClass{
    int a = 1;
    static int b = 2;
    String e = "外部类";
    //实例内部类
    static class InClass{
        int c = 3;
        static int d = 4;//常量
        String e = "静态内部类";

        public void print(){
            OutClass outClass = new OutClass();
            System.out.println(outClass.a);
            System.out.println(b);
            System.out.println(c);
            System.out.println(d);
            System.out.println(e);
            System.out.println(outClass.e);
        }

    }

}

public class Test {
    public static void main(String[] args) {

    }
}
